<?php
require_once('../includes/parse_mysql_dump.php');
$url = 'site.sql';
$nowhost = $xcpage['database']['Server'];
$nowdatabase = $xcpage['database']['Database'];
$nowuser = $xcpage['database']['Username'];
$nowpass = $xcpage['database']['Password'];
function parse_mysql_dump($url,$nowhost,$nowdatabase,$nowuser,$nowpass);
?>
<html>
<head>
<title>Installation</title>
<style type="text/css">
body {font-family: Verdana; font-size: 11px; background-color: #333}
#wrapper {width: 800px; height: 800px; text-align: left; margin: 0 auto; border: 3px groove black; padding: 10px; background-color: white;}
</style>
</head>
<body>
<div id="wrapper">
<h1>Installation</h1>
<form action="finish.php" method="post">
Website Title:<br>
<input type="text" name="title" value="<? echo $row['title']; ?>"><br><br>
<i><b>Default:</b> Xat Custom Page<br>Type in the name of your chat page here. This is what will appear on tabs and bookmarks. If you don't enter anything here, your website will have no name and it'll have the URL of the site instead.</i>
<hr>
Keywords:<br>
<input type="text" name="keywords" value="<? echo $row['keywords']; ?>"><br><br>
<i><b>Default:</b> Xat, Custom Page<br>These are keywords used for search engines to find your website! If you have more keywords, your site will have a better chance to appear on Google or Yahoo search! <b>Separate these with commas</b></i>
<hr>
Description:<br>
<input type="text" name="description" value="<? echo $row['description']; ?>"><br><br>
<i><b>Default:</b> Xat Custom Page<br>This is the description for your site! This will also help search engines find your website. The best way for a description is to type a nice paragraph about your website while including most, or all of your keywords.</i>
<hr>
Author:<br>
<input type="text" name="author" value="<? echo $row['author']; ?>"><br><br>
<i><b>Default:</b> Comet<br>Another thing to help with search engines! I put 'Comet' as the author on default, but you can change it. I don't really care if you take this off because I'm making this open source. I'll be adding on updates and possible an SVN if I need to.</i>
<hr>
CSS File:<br>
<input type="text" name="cssfile" value="<? echo $row['cssfile']; ?>"><br><br>
<i><b>Default:</b> 'styles/main.css'<br>This is the path to the CSS file which is needed for the website to have colors or designs. I suggest you not change this setting.</i>
<hr>
Embed:<br>
<textarea name="embed" cols="97" rows="10"><? echo $row['embed']; ?></textarea><br><br>
<i>This is the embed code for the chat. <b>This is absolutely needed or this site will be useless.</b> If you do not know how to get the embed code, just go to a chat page, and click on the image on the top right that looks like this: <img src="http://xat.com/images/i_put.gif"></i><br>
<input type="submit" value="Install!">
</form>
</div>
</body>
</html>